<%-- 
    Document   : BasicChart
    Created on : Dec 11, 2011, 7:15:23 PM
    Author     : Zaher.Yamak
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<HTML>
    <HEAD>
        <TITLE>FusionCharts Free - Simple Column 3D Chart</TITLE>
        <style type="text/css">
        <!--
        body {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;
        }
        -->
        </style>
    </HEAD>
    <BODY>
        <CENTER>
<%

            //We first request the data from the form (Default.jsp)

            //In this example, we're directly showing this data back on chart.
            //In your apps, you can do the required processing and then show the 
            //relevant data only.

            //Now that we've the data in variables, we need to convert this into XML.
            //The simplest method to convert data into XML is using string concatenation. 
            String strXML="";
            //Initialize <graph> element
            strXML = "<graph caption='Monthly Unit Sales' xAxisName='Options' yAxisName='Percentage' decimalPrecision='0' formatNumberScale='0'>";
   strXML +=" <set name='Jan' value='462' color='AFD8F8' />";
   strXML +=" <set name='Feb' value='857' color='F6BD0F' />";
   strXML +=" <set name='Mar' value='671' color='8BBA00' />";
strXML +="</graph>";

            //Create the chart - Pie 3D Chart with data from strXML
            %>

            <jsp:include page="FusionChartsHTMLRenderer.jsp" flush="true"> 
                <jsp:param name="chartSWF" value="FCF_Column3D.swf" /> 
                <jsp:param name="strURL" value="" /> 
                <jsp:param name="strXML" value="<%=strXML %>" />
                <jsp:param name="chartId" value="myFirst" /> 
                <jsp:param name="chartWidth" value="600" /> 
                <jsp:param name="chartHeight" value="300" /> 
                <jsp:param name="debugMode" value="false" /> 
            </jsp:include>

           </CENTER>
    </BODY>
</HTML>
